﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Model;
using SDT.Lib.Paging;
using SDT.Site.Properties;

namespace SDT.Site.ViewModels
{
    public class ProductSearchModels
    {       
        public IList<ProductType> ProductTypes { get; set; }
        public IList<ProductCategory> Categories { get; set; }
        public IList<City> Cities { get; set; }
        public IList<ConvertArea> ConvertAreas { get; set; }
        public IList<ConvertPrice> ConvertPrices { get; set; }   
        public IPagedList<Product> Products{ get; set; }
        public Dictionary<int, string> Times { get; set; }
        public string ImageUrl { get; set; }
        public string ImagePath { get; set; }
        public int? TimeID { get; set; }
        public string Keyword { get; set; }
        public int? AreaID { get; set; }
        public int? PriceID { get; set; }
        public int? CategoryID { get; set; }
        public int? TypeID { get; set; }
        public int? CityID { get; set; }
        public int? DistrictID { get; set; }
        public int? ProjectID { get; set; }
        
        public IList<District> Districts { get; set; }
        public ProductType ProductType { get; set; }
        public ProductCategory Category { get; set; }
        public City City { get; set; }
        public District District { get; set; }
        public ConvertArea ConvertArea { get; set; }
        public ConvertPrice ConvertPrice { get; set; }
        //For details page
        public string PathTitle { get; set; }

        public Dictionary<int, string> Currencies { get; set; }
        public Dictionary<int, string> UnitCosts { get; set; }
        public Dictionary<int, string> Directions { get; set; }
        // Added by Vietlv: 12/09/2011
        public Guid AddBy { get; set; }
    }


    public class ProductListModels
    {
        public IList<Product> Products { get; set; }
        public Product CurrentProduct { get; set; }
        public string Keyword { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
        public Dictionary<int, string> Currencies { get; set; }
        public Dictionary<int, string> UnitCosts { get; set; }
    }
    public class ProductDetailsModels
    {
        public Product Product { get; set; }
        public Dictionary<int, string> Directions { get; set; }
        public string Keyword { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
        public string GoogleAPI { get; set; }
        public ProductSearchModels ProductSearch { get; set; }
    }
    public class ProductCategoryModels
    {
        public IList<ProductCategory> Categories { get; set; }
        public string Keyword { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
    }
}
